{include file="public/header" /}
<style type="text/css">
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
    }

    .btn-active {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">

                    <div style="display:block;clear: both;"></div>
                    <div class="fixed-table-toolbar">

                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">


                            <div class="form-group-title">注册赠送</div>
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">上级</th>
                                    {foreach $sexs as $sexs_key=>$sex_value }
                                    <th data-align="center">奖励给注册用户（{$sex_value}）</th>
                                    {/foreach}
                                </tr>
                                </thead>
                                <tbody id="form">

                                {foreach $types as $type_key=>$type_value}
                                <tr class="class">
                                    <td>{$type_value}</td>

                                    {foreach $sexs as $sexs_key=>$sex_value }
                                    <td>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label"></label>
                                            <div class="col-sm-9">
                                                {if $sexs_key==1}
                                                <select name="give_package[register][{$sexs_key}][{$type_key}]" class="form-control">
                                                    <option value="0"  {if !isset($give_package['register'][$sexs_key][$type_key]) || $give_package['register'][$sexs_key][$type_key]==0}selected="selected"{/if}>无</option>
                                                    {foreach $package_list as $package}
                                                    <option value="{$package['id']}"  {if isset($give_package['register'][$sexs_key][$type_key]) && $give_package['register'][$sexs_key][$type_key]==$package['id']}selected="selected"{/if}>{$package['name']}</option>
                                                    {/foreach}
                                                </select>
                                                {else}无{/if}
                                                {if $development_display}<br><span style="color: red;">give_package[register][上级性别：{$sexs_key}][上级用户类型：{$type_key}]</span>{/if}
                                            </div>
                                        </div>

                                    </td>
                                    {/foreach}


                                </tr>
                                {/foreach}

                                </tbody>
                            </table>

                            <div class="form-group-title">购买套餐</div>
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">上级</th>
                                    {foreach $sexs as $sexs_key=>$sex_value }
                                    <th data-align="center">奖励给上级用户（{$sex_value}）</th>
                                    {/foreach}
                                    <th data-align="center">奖励限制（次）</th>
                                </tr>
                                </thead>
                                <tbody id="form">

                                {foreach $types as $type_key=>$type_value}
                                <tr class="class">
                                    <td>{$type_value}</td>
                                    {foreach $sexs as $sexs_key=>$sex_value }
                                    <td>
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label"></label>
                                            <div class="col-sm-9">
                                                {if $sexs_key==1}
                                                <select name="give_package[sub_pay_package][{$sexs_key}][{$type_key}]" class="form-control">
                                                    <option value="0" {if !isset($give_package['sub_pay_package'][$sexs_key][$type_key]) || $give_package['sub_pay_package'][$sexs_key][$type_key]==0}selected="selected"{/if}>无</option>
                                                    {foreach $package_list as $package}
                                                    <option value="{$package['id']}"  {if isset($give_package['sub_pay_package'][$sexs_key][$type_key]) && $give_package['sub_pay_package'][$sexs_key][$type_key]==$package['id']}selected="selected"{/if}>{$package['name']}</option>
                                                    {/foreach}
                                                </select>
                                                {else}无{/if}
                                                {if $development_display}<br><span style="color: red;">give_package[sub_pay_package][上级性别：{$sexs_key}][上级用户类型：{$type_key}]</span>{/if}
                                            </div>
                                        </div>
                                    </td>
                                    {/foreach}

                                    <td>  <input type="text" name="give_package[num][{$type_key}]" class="form-control" value="{if isset($give_package['num'][$type_key]) }{$give_package['num'][$type_key]}{/if}" />
                                        {if $development_display}<br><span style="color: red;">give_package[num][上级用户类型即：{$type_key}]</span>{/if}</td>
                                </tr>
                                {/foreach}

                                </tbody>
                            </table>

                            <div class="form-group-title">认证赠送</div>
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">认证用户性别</th>
                                    <th data-align="center">奖励给认证用户</th>
                                    <th data-align="center">上级用户性别</th>
                                    <th data-align="center">奖励给上级用户</th>
                                </tr>
                                </thead>
                                <tbody id="form">


                                <!--认证用户-->
                                {foreach $sexs as $sex_key=>$sex_value}
                                    <!--上级用户-->
                                    {foreach $sexs as $s_key=>$s_value}
                                        <tr class="class">
                                            <td>{$sex_value}</td>
                                            <td>
                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label"></label>
                                                    <div class="col-sm-9">
                                                        {if $sex_key==1}
                                                        <select name="give_package[real_verify][real][{$sex_key}][{$s_key}]" class="form-control">
                                                            <option value="0" {if !isset($give_package['real_verify']['real'][$sex_key][$s_key]) || $give_package['real_verify']['real'][$sex_key][$s_key]==0}selected="selected"{/if}>无</option>
                                                            {foreach $package_list as $package}
                                                            <option value="{$package['id']}"  {if isset($give_package['real_verify']['real'][$sex_key][$s_key]) && $give_package['real_verify']['real'][$sex_key][$s_key]==$package['id']}selected="selected"{/if}>{$package['name']}</option>
                                                            {/foreach}
                                                        </select>
                                                        {else}无{/if}
                                                        {if $development_display}<br><span style="color: red;">give_package[real_verify][real][认证用户性别：{$sex_key}][上级性别：{$s_key}]</span>{/if}
                                                    </div>
                                                </div>
                                            </td>
                                            <td> {$s_value} </td>
                                            <td>
                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label"></label>
                                                    <div class="col-sm-9">
                                                        {if $s_key==1}
                                                        <select name="give_package[real_verify][superior][{$sex_key}][{$s_key}]" class="form-control">
                                                            <option value="0" {if !isset($give_package['real_verify']['superior'][$sex_key][$s_key]) || $give_package['real_verify']['superior'][$sex_key][$s_key]==0}selected="selected"{/if}>无</option>
                                                            {foreach $package_list as $package}
                                                            <option value="{$package['id']}"  {if isset($give_package['real_verify']['superior'][$sex_key][$s_key]) && $give_package['real_verify']['superior'][$sex_key][$s_key]==$package['id']}selected="selected"{/if}>{$package['name']}</option>
                                                            {/foreach}
                                                        </select>
                                                        {else}无{/if}
                                                        {if $development_display}<br><span style="color: red;">give_package[real_verify][superior][认证用户性别：{$sex_key}][上级性别：{$s_key}]</span>{/if}
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    {/foreach}
                                {/foreach}

                                </tbody>
                            </table>



                        </form>
                    </div>
                </div>
            </div>
            <hr>

        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.css"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.js"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table-zh-CN.min.js"}
{include file="public/bottom" /}